package ve;

import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.Label;
import java.awt.List;
import java.awt.Panel;
import java.awt.TextField;

public class Teste extends Panel {

    private static final long serialVersionUID = 1L;

    private Label label = null;

    private final List list = null;

    private List list1 = null;

    private Panel panel = null;

    private Label label1 = null;

    private Label label2 = null;

    private TextField textField = null;

    private TextField textField1 = null;

    public Teste() {
        super();
        initialize();
    }

    /**
     * This method initializes this
     * 
     * @return void
     */
    private void initialize() {
        BorderLayout borderLayout = new BorderLayout();
        borderLayout.setVgap(20);
        label = new Label();
        label.setText("Cadastro de Equipamentos");
        label.setAlignment(Label.CENTER);
        this.setLayout(borderLayout);
        this.setSize(300, 200);
        this.add(label, BorderLayout.NORTH);
        this.add(getList1(), BorderLayout.SOUTH);
        this.add(getPanel(), BorderLayout.CENTER);
    }

    /**
     * This method initializes list1	
     * 	
     * @return java.awt.List	
     */
    private List getList1() {
        if (list1 == null) {
            list1 = new List();
        }
        return list1;
    }

    /**
     * This method initializes panel	
     * 	
     * @return java.awt.Panel	
     */
    private Panel getPanel() {
        if (panel == null) {
            label2 = new Label();
            label2.setText("Nome");
            label2.setAlignment(Label.CENTER);
            label1 = new Label();
            label1.setText("Host");
            label1.setAlignment(Label.CENTER);
            GridLayout gridLayout = new GridLayout();
            gridLayout.setRows(2);
            gridLayout.setHgap(0);
            gridLayout.setVgap(20);
            gridLayout.setColumns(2);
            panel = new Panel();
            panel.setLayout(gridLayout);
            panel.add(label2, null);
            panel.add(getTextField1(), null);
            panel.add(label1, null);
            panel.add(getTextField(), null);
        }
        return panel;
    }

    /**
     * This method initializes textField	
     * 	
     * @return java.awt.TextField	
     */
    private TextField getTextField() {
        if (textField == null) {
            textField = new TextField();
        }
        return textField;
    }

    /**
     * This method initializes textField1	
     * 	
     * @return java.awt.TextField	
     */
    private TextField getTextField1() {
        if (textField1 == null) {
            textField1 = new TextField();
        }
        return textField1;
    }

}
